home *** CD-ROM | disk | FTP | other *** search
/ Power Bytes: Money & Finance / PowerBytes Money and Finance CD-ROM 01 / PowerBytes Money and Finance CD-ROM 01.iso / Demos / TrueBASIC Demo / User's Guide / Expense < prev    next >
Encoding:
Text File  |  1985-06-20  |  545 b   |  18 lines  |  [TEXT/TRUE]

  1. ! Draw histogram of projected expenses.
  2. !
  3. DIM expense(1980 TO 1989)            ! Bounds run from 1980 to 1989
  4.  
  5. FOR i = 1980 TO 1989                 ! Run through those years
  6.     READ expense(i)                  ! Read projected expense
  7.     IF expense(i) > max_exp THEN LET max_exp = expense(i)
  8. NEXT i
  9.  
  10. SET WINDOW 1980, 1990, 0, 1.1*max_exp    ! Set window
  11.     
  12. FOR i = 1980 to 1989                     ! Run through years
  13.     BOX AREA i, i+.5, 0, expense(i)      ! Draw bars
  14. NEXT i
  15.  
  16. DATA 4000,4500,7000,8700,8900,11400,11200,10100,9800,9900
  17. END
  18.